﻿using System.Collections.Generic;
using System.Linq;
using DL.Tools.SortAlgorithmTools;

namespace DL.AI.AIBT
{
    /// <summary>
    /// 随机选择器
    /// </summary>
    public class RandomSelector : PrioritySelector
    {
        public RandomSelector(string name,int priority = 0) : base(name,priority)
        {
        }
        protected override List<BTNode> SortChildren() => Children.Shuffle().ToList();
    }
}